package cn.audit.bean.dto;

import cn.audit.bean.pojo.*;
import lombok.Data;

import java.util.List;

/**
 * @Author: 李忆枫
 * @Date: 2019/5/18 16:11
 */
@Data
public class UserCorrelation {

    private User user;
    private User user2;

    private AuditInstitution auditInstitution;
    private AuditInstitution auditInstitution2;
    private RoleManager roleManager;

    private CheckItem checkItem;
    private ExtractionUnit extractionUnit;
    private Project1 project;

    private AuditPlan auditPlan;
    private Taskocation taskocation;

    /**
     * 操作日志
     */
    private OperationLog log;

    /**
     * 工作日志
     */
    private WorkLog workLog;

    public UserCorrelation() {
    }

    public UserCorrelation(User user, AuditInstitution auditInstitution, RoleManager roleManager) {
        this.user = user;
        this.auditInstitution = auditInstitution;
        this.roleManager = roleManager;
    }

    public UserCorrelation(CheckItem checkItem, ExtractionUnit extractionUnit, Project1 project) {
        this.checkItem = checkItem;
        this.extractionUnit = extractionUnit;
        this.project = project;
    }

    public UserCorrelation(AuditPlan auditPlan, AuditInstitution auditInstitution) {
        this.auditPlan = auditPlan;
        this.auditInstitution = auditInstitution;
    }

    public UserCorrelation(User user, RoleManager roleManager) {
        this.user = user;
        this.roleManager = roleManager;
    }

    public UserCorrelation(User user, AuditInstitution auditInstitution, OperationLog log) {
        this.user = user;
        this.auditInstitution = auditInstitution;
        this.log = log;
    }

    public UserCorrelation(User user, Project1 project, WorkLog workLog) {
        this.user = user;
        this.project = project;
        this.workLog = workLog;
    }

    public UserCorrelation(User user, RoleManager roleManager, Project1 project) {
        this.user = user;
        this.roleManager = roleManager;
        this.project = project;
    }

    public UserCorrelation(User user, User user2, Project1 project) {
        this.user = user;
        this.user2 = user2;
        this.project = project;
    }

    public UserCorrelation(User user, Project1 project) {
        this.user = user;
        this.project = project;
    }

    public UserCorrelation(User user, AuditPlan auditPlan) {
        this.user = user;
        this.auditPlan = auditPlan;
    }


    public UserCorrelation(Project1 project, AuditInstitution institution) {
        this.project = project;
        this.auditInstitution = institution;
    }

    public UserCorrelation(User user,AuditInstitution institution, Project1 project) {
        this.user = user;
        this.project = project;
        this.auditInstitution = institution;
    }

    public UserCorrelation(User user, Taskocation taskocation) {
        this.user = user;
        this.taskocation = taskocation;
    }

    public UserCorrelation(AuditInstitution auditInstitution, AuditInstitution auditInstitution2) {
        this.auditInstitution = auditInstitution;
        this.auditInstitution2 = auditInstitution2;
    }
}

